projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0bab8b8
)
button: Don't care about sizing if no child is set
author
Timm Bäder
<mail@baedert.org>
Thu, 18 May 2017 08:09:39 +0000
(10:09 +0200)
committer
Matthias Clasen
<mclasen@redhat.com>
Thu, 20 Jul 2017 01:27:13 +0000
(21:27 -0400)
We don't need to care in this case since the default values should
always be assumed to be 0, and setting a baseline of 0 is just wrong
when orientation == HORIZONTAL, it should be -1 (or unset).
gtk/gtkbutton.c
patch
|
blob
|
history
diff --git
a/gtk/gtkbutton.c
b/gtk/gtkbutton.c
index 149de66006d366d1c6b7c2d79b9ea5d8d749f437..5432c49be8b0867444b86f95d8714f6667fa7509 100644
(file)
--- a/
gtk/gtkbutton.c
+++ b/
gtk/gtkbutton.c
@@
-931,15
+931,6
@@
gtk_button_measure_ (GtkWidget *widget,
minimum, natural,
minimum_baseline, natural_baseline);
}
- else
- {
- *minimum = 0;
- *natural = 0;
- if (minimum_baseline)
- *minimum_baseline = 0;
- if (natural_baseline)
- *natural_baseline = 0;
- }
}
/**